package com.example.demo.service.impl;

import com.example.demo.entiy.Authority;
import com.example.demo.mapper.AuthorityMapper;
import com.example.demo.service.AuthorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AuthorityServiceImpl implements AuthorityService {

    @Autowired
    AuthorityMapper authorityMapper;

    @Override
    public List<Authority> getAuthorityListByUsername(String username) {
        return authorityMapper.getAuthorityListByUsername(username);
    }
}
